#include <iostream>
#include <string.h> 
#include "connections.hpp"
#include "server.cpp"

int main(int argc, char* argv[]) {
    int PORT = 8080;
     if (argc >= 2) {
        PORT = std::atoi(argv[1]);
    }
    Connections conns;
    TCPServer server(PORT,conns);
    server.start();

    // Example of using the connection count method
    std::cout << "Current connection count: " << server.getConnectionCount() << std::endl;

    return 0;
}